/**
 * \file
 *           tlmRmtCfgDataInfo.cpp
 * \brief
 *           Implements tlmRmtCfgDataInfo class for Telematics services
 *           this is the base class of data infomation.
 *
 * \par Author (last changes):
 *          - Zeng Jie
 *          - BUIC, Continental Automotive Holdings Co., Ltd.
 * \par Project Leader:
 *          -
 * \par Responsible Developer:
 *          - Zeng Jie
 *          - BUIC, Continental Automotive Holdings Co., Ltd.
 * \par Responsible Architect:
 *          - Zhang Fa
 *          - BUIC, Continental Automotive Holdings Co., Ltd.
 *
 * \par Project:
 *      DPCA2
 *
 * \par SW-Component:
 *      Telematics
 *
 * \par SW-Package:
 *      Telematics
 *
 * \par SW-Module:
 *      Telematics Application
 *
 * \par SW-Architecture Specification:
 *      DPCA2_TELEMATICS_SW_DD_07a_ready.doc
 *
* \par SW-Design Specification:
 *      DPCA2_TLM-RMTCFG_SW_DD_01d_released.doc
 *
 * \par SW-Test Case Specification:
 *
 * \par CM-Info:
 *
 * \note
 *      This is a note.
 *
 * \bug
 *      - there are no known bugs
 *
 * \par Module-History:
 *
 * \verbatim
 * Date                Author					Reason
 * 10 Dec 2013        Zeng Jie              Initial Creation
 * The latest entry at the head of the history list.
 * \endverbatim
 *
 * \par Copyright Notice:
 * Copyright (C) 2012 Continental Automotive Holdings Co., Ltd.
 * Alle Rechte vorbehalten. All Rights Reserved.\n
 * The reproduction, transmission or use of this document or its contents is
 * not permitted without express written authority.\n
 * Offenders will be liable for damages. All rights, including rights created
 * by patent grant or registration of a utility model or design, are reserved.
 *
 */

#include "stdafx.h"
#include "tlmRmtCfgDataInfo.h"
//## operation GetParaAdmin()
#include "tlmRmtCfgParaAdmin.h"
//## operation GetParaNavi()
#include "tlmRmtCfgParaNavi.h"
//## operation GetParaWeb()
#include "tlmRmtCfgParaWeb.h"
//## operation SetItsService(tlmServiceApp)
#include "tlmServiceApp.h"

/**
* \brief tlmRmtCfgDataInfo: this is constructor of tlmRmtCfgDataInfo class
*
* \note
*
* \param[in]
* - bufptr: pointer to buffer that store the datainfo message
*   size  : size of the datainfo buffer
*
* \return
* - none
*/
tlmRmtCfgDataInfo::tlmRmtCfgDataInfo(uint8_t* bufPtr, uint32_t size) : tlmServiceDataInfo(bufPtr, size), mParaAdmin(), mParaNavi(), mParaWeb() {
    //#[ operation tlmRmtCfgDataInfo(uint8_t*,uint32_t)
    //mDataInfoBuffer.setMsgBufferPtr(bufPtr);      
    //mDataInfoBuffer.setMsgBufferSize(size);
    
    //#]
}

/**
* \brief tlmRmtCfgDataInfo: this is default constructor of tlmRmtCfgDataInfo class
*
* \note
*
* \param[in]
* - none
*
* \return
* - none
*/
tlmRmtCfgDataInfo::tlmRmtCfgDataInfo() : tlmServiceDataInfo(), mParaAdmin(), mParaNavi(), mParaWeb(){
    //#[ operation tlmRmtCfgDataInfo()
    //#]
}

/**
* \brief ~tlmRmtCfgDataInfo: this is destructor of tlmRmtCfgDataInfo class 
*
* \note
*
* \param[in]
* - none
*
* \return
* - none
*/
tlmRmtCfgDataInfo::~tlmRmtCfgDataInfo() {
}

/**
* \brief GetParaAdmin : get the admin parameter object
*
* \note
*
* \param[in]
* - none
*
* \return
* - tlmRmtCfgParaAdmin* : pointer to admin parameter object
*
*/
tlmRmtCfgParaAdmin* tlmRmtCfgDataInfo::GetParaAdmin() {
    tlmRmtCfgParaAdmin * pParaAdmin = NIL;

    pParaAdmin = &mParaAdmin;
    return pParaAdmin;
}

/**
* \brief GetParaNavi : get the Navi parameter object
*
* \note
*
* \param[in]
* - none
*
* \return
* - tlmRmtCfgParaNavi* : pointer to Navi parameter object
*
*/
tlmRmtCfgParaNavi* tlmRmtCfgDataInfo::GetParaNavi() {
    tlmRmtCfgParaNavi * pParaNavi = NIL;

    pParaNavi = &mParaNavi;
    
    return pParaNavi;
}

/**
* \brief GetParaWeb : get the Web parameter object
*
* \note
*
* \param[in]
* - none
*
* \return
* - tlmRmtCfgParaWeb* : pointer to Web parameter object
*
*/
tlmRmtCfgParaWeb* tlmRmtCfgDataInfo::GetParaWeb() {
    tlmRmtCfgParaWeb * pParaWeb= NIL;

    pParaWeb = &mParaWeb;
    
    return pParaWeb;
}


